package com.rest.demo.concurrent;

/**
 * @author Administrator
 * @decription
 * @Date 2018-02-05 8:52
 */
public class ThreadStateDemo implements Runnable{

    public static void main(String[] args) {
        Thread task = new Thread(new ThreadStateDemo());
        System.out.println("current thread name:" + task.getName());
        System.out.println("current thread id:" + task.getId());
        System.out.println("current thread state:" + task.getState());
        System.out.println("tread priority:" + task.getPriority());
    }

    @Override
    public void run() {
        System.out.println("执行......");
    }
}
